package com.shaozi.nc.data.model;

import org.springframework.data.mongodb.core.mapping.Document;
import com.shaozi.data.mongo.model.ModelBase;
import com.shaozi.utils.common.JsonUtil;

@Document(collection = "nc_org_push_msg")
public class OrgPushMsgModel extends ModelBase {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3407620404846604765L;
	/**
	 * 公司，部门，人员id，三者选其一
	 */
	private String compId;
	private String orgId;
	private String userId;
	/**
	 * 组织类型1：公司，2部门，3人员
	 */
	private Integer levelType;
	/**
	 * 推送类型3:写工作汇报提醒,见Constants.SourceType_XXX
	 */
	private Integer sourceType;
	/**
	 * 推送时间的规则
	 */
	private String pushRegex;

	private String title;
	private String content;
	private Long createTime;
	private Integer isDel;
	private Long delTime;

	public OrgPushMsgModel() {

	}

	public String toJsonStr() {
		return JsonUtil.toJsonString(this);
	}

	public String getCompId() {
		return compId;
	}

	public void setCompId(String compId) {
		this.compId = compId;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getLevelType() {
		return levelType;
	}

	public void setLevelType(Integer levelType) {
		this.levelType = levelType;
	}

	public String getPushRegex() {
		return pushRegex;
	}

	public void setPushRegex(String pushRegex) {
		this.pushRegex = pushRegex;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getIsDel() {
		return isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public Long getDelTime() {
		return delTime;
	}

	public void setDelTime(Long delTime) {
		this.delTime = delTime;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Integer getSourceType() {
		return sourceType;
	}

	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}
	

}
